package com.ruoyi.security.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * 电梯维保单对象 omp_af_elevator_maintenance
 *
 * @author cjie
 * @date 2022-07-25
 */
@Data
@ApiModel
public class AfElevatorOnlineRateBPVo {
    private static final long serialVersionUID = 1L;

    /** 设备在线率 */
    @ApiModelProperty(value = "设备在线率")
    private Integer onlineRate;

    @ApiModelProperty(value = "货梯总数")
    private Integer goodsTotal;

    @ApiModelProperty(value = "客梯总数")
    private Integer guestTotal;

    @ApiModelProperty(value = "正在维护")
    private Integer maintainTotal;

    @ApiModelProperty(value = "离线率")
    private Integer offlineRate;

    @ApiModelProperty(value = "检修率")
    private Integer checkRate;

    @ApiModelProperty(value = "故障率")
    private Integer faltRate;

    //今日故障统计
    @ApiModelProperty(value = "今日故障")
    List<FaltBPVo> falts = new ArrayList<>();

    public static class FaltBPVo{
        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getLocation() {
            return location;
        }

        public void setLocation(String location) {
            this.location = location;
        }

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

/*        public Integer getFaltRate() {
            return faltRate;
        }

        public void setFaltRate(Integer faltRate) {
            this.faltRate = faltRate;
        }*/

        String type;
        String location;
        Integer total;
    }

    Map<String,Integer> runTimeMap = new LinkedHashMap<>();

    Map<String,Integer> runNumberMap = new LinkedHashMap<>();

}
